//
//  ChannnelTopScrollView.h
//  ChannelCommonComponent
//
//  Created by LiuLian on 14-2-18.
//  Copyright (c) 2014年 LiuLian. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ChannelDataSource.h"

//按钮高度
#define BUTTONHEIGHT 38

@interface ChannnelTopScrollView : UIScrollView

@property (nonatomic, strong) NSArray *channelList;
@property (nonatomic, strong) NSArray *channelData;
@property (nonatomic, strong) NSMutableArray *buttons;
//记录状态用
@property (nonatomic, assign) CGFloat itemOriginX;
@property (nonatomic, assign) CGFloat directionX;
@property (nonatomic, assign) NSInteger currentButtonTag;
@property (nonatomic, strong) ChannelDataSource *topData;

- (id)initWithDataSource:(ChannelDataSource *)data;
- (void)updateItemsWithArray:(NSArray *)reload;
- (void)updateItemsWithGoToHomeChannel;

@end
